#ifndef FRIENDLIST_H
#define FRIENDLIST_H

#include <QObject>
#include <vector>

struct FriendlistElement
{
    QString loginName;
    QString nickname;
    QString status;
    bool online;
};

class Friendlist : public QObject
{
    Q_OBJECT

public:
    Friendlist(QObject *parent = 0);
    FriendlistElement* operator[](int i);
    FriendlistElement* at(int i);
    void parseFromString(QString stringToParse);
    int size();

private:
    std::vector<FriendlistElement> m_friendlist;
};

#endif // FRIENDLIST_H
